package com.gradle.springdemo.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2016-11-02.
 */
@RestController
public class demoController {

    @RequestMapping("/greeting/{name}")
    public String greeting(@PathVariable("name" ) String name) {
        return "I wanna to be a " + name;
    }
}